var TabCoord = new Array();

function InitTabCoord(){
	alert("-------------- Enter Init --------------------");
	var tmp, tmp2;
	var x = 0;
	var y = 0;
	for (tmp = 0; tmp < 6; tmp++){
		TabCoord[tmp] = new Array();
		for (tmp2 = 0; tmp2 < 10; tmp2++){
			TabCoord[tmp][tmp2] = x+":"+y;
			x += 128;
		}
		x = 0;
		y += 128;
	}
	alert("-------------- Exit Init --------------------");
}

function DisplayTabCoord(){
	var tmp, tmp2;
	for (tmp = 0; tmp < 6; tmp++){
		alert("------ Ligne " + tmp + "------");
		for (tmp2 = 0; tmp2 < 10; tmp2++){
			alert(TabCoord[tmp][tmp2]);
		}
	}
	alert("");
}

function ExtractX(line,col){
	var x = TabCoord[line][col];
	x = parseInt(x.substring(0,x.indexOf(':')));
	//alert("*/*/*/*/*/*/*/*/" + x + "*/*/*/*/*/*/*/*/*/*/");
	return x;	
}

function ExtractY(line,col){
	var y = TabCoord[line][col];
	y = parseInt(y.substring(y.indexOf(':')+1,y.length));
	//alert("-*-*-*-*-*-*-*-*" + y + "-*-*-*-*-*-*-*-*-*-*");
	return y;	
}